package xyz.ddlnt.serviceusrclient.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import xyz.ddlnt.commonutil.result.Result;
import xyz.ddlnt.model.dto.MessageDTO;
import xyz.ddlnt.model.vo.MessageVO;

import java.util.List;

/**
 * @author ZZULI_SE 210910
 * @data 2025/5/26 16:53
 */
//@FeignClient(name = "service-usr", url = "http://yixuewang-service-usr:9015", path = "/message")
//@FeignClient(name = "service-usr", url = "http://localhost:9005", path = "/message")
@FeignClient(value = "service-usr", path = "/message")
public interface MessageFeignClient {

    /**
     * 获取私信消息
     * @param messageDTO
     * @return
     */
    @PostMapping("/getMessageList")
    Result<List<MessageVO>> getMessageList(@RequestBody MessageDTO messageDTO);
}
